package com.example.spring.framework.beans;

/**
 * @Classname BeanWrapper
 * @Date 2019/4/16 23:44
 * @Author admin
 * @Description TODO
 */
public class BeanWrapper {

    private Object wrappedInstance;
    private Class<?> wrappedClass;

    public BeanWrapper(Object wrappedInstance) {
        this.wrappedInstance = wrappedInstance;
    }

    public Object getWrappedInstance() {
        return this.wrappedInstance;
    }

    //返回代理后的Class 可能是$Proxy0
    public Class<?> getWrappedClass() {
        return this.wrappedInstance.getClass();
    }
}
